<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<table align="center" border="0" cellpadding="0" cellspacing="1" bgcolor="#6dfff2" width="750">

	<tr height="25" style="text-align:center">
		<td><a href="itemList.do">상품목록</a></td>
		<td><a href="itemInsert.do">상품등록</a></td>
	</tr>

	<table align="center" width="720">
		<tr height="250" align="center" style="margin-bottom: 50">
		<c:forEach var="item" items="${item }">
			<td>
				<a style="text-decoration: none" href="itemDetail.do?i_no=${item.i_no }"><img src="../upload/${item.i_image1 }" width = "170" height= "170"><br/>
				상품이름 : ${item.i_name }<br/>
				재고수량 : ${item.i_ea }<br/>
				판매단가 : ${item.i_price }<br/>
				</a>
			</td>
			<c:if test="${item.rnum%3==0 }">
				</tr>
				<tr height="250" align="center">	
			</c:if>	
				
		
		</c:forEach>
		</tr>
	
	</table>

</table>

